#!/usr/bin/env python 
#-*- coding:utf-8 -*-
StudentName = []
StudentPassWD = []
TeacherName = []
TeacherPassWD = []
Sun = ''
SunPassWD = ''
a = 0
def UserLogin():
    while True:
        UserName = input("输入你的名字:")
        UserName = UserName.strip()
        Password = input("输入你的密码:")
        Password = Password.strip()
        if UserName in StudentName and Password == StudentPassWD[StudentName.index(UserName)]:
            Student()
        elif UserName in TeacherName and Password == TeacherPassWD[StudentName.index(UserName)]:
            Teache()
        elif UserName in Sun and Password in SunPassWD:
        
        else:
            print("你的名字或者密码错误!")
            a += 1
            if a >= 3:
                print("你已经输入错误3次")
                break